<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="item in list">
                <img :src="item.image_src" alt="">
            </li>
        </ul>
    </div>

    <script src="./vue.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/axios/1.0.0-alpha.1/axios.js"></script>

    <script>
        new Vue ({
            el : "#app",

            beforCreate() {
                console.log("Vue的第一个生命周期");
            },
            created() {
                console.log("Vue的第二个生命周期");
                axios.get("https://api-hmugo-web.itheima.net/api/public/v1/home/swiperdata").then(res => {
                    this,list = res.data.message
                })
            },
            data : {
                count : 0,
                list : []
            },
            methods: {
                fn() {
                    console.log(123);
                }
            }
        })
    </script>
</body>
</html>